package com.altekis.kanbankaze.client;

import com.allen_sauer.gwt.dnd.client.DragContext;
import com.altekis.kanbankaze.shared.Stage;
import com.google.gwt.user.client.ui.AbsolutePanel;

public class StageView extends AbsolutePanel {
	
	private Stage stage;
	
	public StageView(Stage stage) {
		this.stage = stage;
	}
	
	public void onDraggedTaskDrop(DragContext context) {
		//System.out.println(context.draggable.getElement().getInnerText());
	}
	
	public void onDraggedTaskEnter(DragContext context) {
		this.addStyleName("dragOver");
	}
	
	public void onDraggedTaskLeave(DragContext context) {
		this.removeStyleName("dragOver");
	}

	/**
	 * @param stage the stage to set
	 */
	public void setStage(Stage stage) {
		this.stage = stage;
	}

	/**
	 * @return the stage
	 */
	public Stage getStage() {
		return stage;
	}
}
